/*
 *  io.c
 *  Asset modeling
 *
 *  Created by Peeter Meos on 27.02.11.
 *  Copyright 2011 NC3A CAT1. All rights reserved.
 *
 */

#include "io.h"

#include <stdio.h>
#include <math.h>

void pr_log(double time, char *str)
{
	
	int		hours;
	int		mins;
	
	hours = lround(time);
	
	if ((double) hours > time)
		hours = hours - 1;
	mins  = lround((time - hours) * 60);
	if((double) mins > (time - hours) * 60)
		mins = mins - 1;
	
 printf("%d:%d : %s\n", hours, mins, str); 
 // printf("%f %d:%d : %s\n", time, hours, mins, str);
}

T_UNIT **read_units()
{
	T_UNIT **units;
	
	return units;
}

T_ASSET **read_assets()
{
	T_ASSET **assets;
	
	return assets;
}